import axios from 'axios'
import { BASE_URL } from '../utils/const'

export function request(config){
  const axios1=axios.create({
   baseURL:BASE_URL,
   method:config.method || 'GET',
   timeout:10000
  })
  return axios1(config)
}